package cn.chiship.framework.common.service.impl;

import cn.chiship.framework.common.service.ExportService;
import cn.chiship.sdk.framework.util.ExportUtil;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * ExportService实现
 * 2020/8/5
 *
 * @author lijian
 */

@Service
public class ExportServiceImpl implements ExportService {

    @Override
    public void exportByType(HttpServletResponse response, String exportType, String fileName, String sheetName, String sheetTitle, List<String> labels, List<List<String>> valueList) throws Exception {
        ExportUtil.getInstance().exportByType(response, exportType, fileName, sheetName, sheetTitle, labels, valueList);
    }
}
